from django.conf.urls import patterns, include, url

# Uncomment the next two lines to enable the admin:
#from django.contrib import admin
#admin.autodiscover()

urlpatterns = patterns('ITInfluence.views',
    # Examples:
    # url(r'^$', 'InfrarougeTwitterInfluence.views.home', name='home'),
    # url(r'^InfrarougeTwitterInfluence/', include('InfrarougeTwitterInfluence.foo.urls')),

    # Uncomment the admin/doc line below to enable admin documentation:
    # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
#    url(r'^admin/', include(admin.site.urls)),
    url(r'^$', 'index'),
    url(r'^twitter/hashtags/$', 'twitterBrowseHashtags'),
    url(r'^twitter/hashtag/(?P<hashtag>.+)/$', 'twitterHashtag'),
    url(r'^twitter/$', 'twitterStats'),
    url(r'^infrarouge/$', 'infrarougeStats'),
    url(r'^twitter/tweets/$', 'twitterBrowseTweets'),
    url(r'^twitter/collect/$', 'twitterShowCollectForm'),
    url(r'^twitter/stopStreaming/$', 'twitterStopStreaming'),
    url(r'^twitter/collect/toggleFollowersCollection/$', 'twitterToggleCollectingFollowers'),
    url(r'^infrarouge/forums/$', 'getInfrarougeForums'),
    url(r'^twitter/followers-ranking/$', 'twitterFollowersCountRanking'),
    
    # infrarouge images
    url(r'^infrarouge/images/ndi/$', 'getInfrarougeNDI'),
    url(r'^infrarouge/images/ndi-time/$', 'getInfrarougeNDITimeFigure'),
    url(r'^infrarouge/images/ndi-replies-count/$', 'getInfrarougeNDIReplyCountFigure'),
    url(r'^infrarouge/images/replies-graph/$', 'getInfrarougeRepliesGraph'),
    url(r'^infrarouge/images/user-discussion-graph/$', 'getInfrarougeUserDiscussionGraph'),
    
    # twitter images
    url(r'^twitter/images/ndi/$', 'getTwitterNDI'),
    url(r'^twitter/images/ndi/(?P<hashtag>.+)/$', 'getTwitterNDISingleHashtag'),
    url(r'^twitter/images/ndi-time/$', 'getTwitterNDITimeFigure'),
    url(r'^twitter/images/ndi-replies-count/$', 'getTwitterNDIReplyCountFigure'),
    url(r'^twitter/images/replies-graph/$', 'getTwitterRepliesGraph'),
    url(r'^twitter/images/followers-graph/$', 'getTwitterFollowersGraph'),
    
    # tools
    url(r'^tools/showimage/(?P<path>.+)$', 'showImage'),
)
